import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'

//引入axios拦截器
import "./axios"

// 全局注册编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

import './permission.js' // 路由拦截


// use
Vue.use(mavonEditor)


Vue.use(ElementUI);


Vue.use(VueAxios, axios)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
